|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Action
org.eclipse.vtp.framework.interactions.voice.vxml.Prompt
public class Prompt
The Prompt class represents the <prompt> VXML element.
The prompt element is used to designate some output to be rendered to the
caller. The output of a prompt can be audio, TTS, or some combination of
both.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Prompt(Output output)
Creates a new instance of Prompt with the given output. |
|
Prompt(Output output,
boolean bargeIn)
Creates a new instance of Prompt with the given output. |
|
| Method Summary | |
|---|---|
java.util.Locale |
getLanguage()
Returns the language the prompt is in. |
Output |
getOutput()
Returns the output to render. |
java.lang.String |
getTimeout()
Returns the prompt timeout, used for record elements only. |
boolean |
isBargeInEnabled()
Returns true if the caller can barge in. |
void |
setBargeInEnabled(boolean bargeInEnabled)
Sets the barge in flag. |
void |
setLanguage(java.util.Locale language)
Sets the language the prompt is in. |
void |
setOutput(Output output)
Sets the output to render. |
void |
setTimeout(java.lang.String timeout)
Sets the prompt timeout, used for record elements only. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this condition to the supplied set. |
protected void |
writeOutput(org.xml.sax.ContentHandler outputHandler)
Write the output in this prompt to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Prompt(Output output)
throws java.lang.NullPointerException
output - The output to render.
java.lang.NullPointerException - If the supplied output is null.
public Prompt(Output output,
boolean bargeIn)
throws java.lang.NullPointerException
output - The output to render.bargeIn - True if the caller can barge in.
java.lang.NullPointerException - If the supplied output is null.| Method Detail |
|---|
public Output getOutput()
public boolean isBargeInEnabled()
public java.util.Locale getLanguage()
public java.lang.String getTimeout()
public void setOutput(Output output)
throws java.lang.NullPointerException
output - The output to render.
java.lang.NullPointerException - If the supplied output is null.public void setBargeInEnabled(boolean bargeInEnabled)
bargeInEnabled - True if the caller can barge in.
public void setLanguage(java.util.Locale language)
throws java.lang.NullPointerException
language - The language the prompt is in.
java.lang.NullPointerException - If the supplied language is null.
public void setTimeout(java.lang.String timeout)
throws java.lang.IllegalArgumentException
output - The prompt timeout, used for record elements only.
java.lang.IllegalArgumentException - If the specified timeout is empty.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeOutput(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing the output fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||